import request from '@/utils/request'

// 查询thesis列表
export function listThesis(query) {
  return request({
    url: '/teacher/thesis/list',
    method: 'get',
    params: query
  })
}

// 查询thesis详细
export function getThesis(thesisId) {
  return request({
    url: '/teacher/thesis/' + thesisId,
    method: 'get'
  })
}

// 新增thesis
export function addThesis(data) {
  return request({
    url: '/teacher/thesis/add',
    method: 'post',
    data: data
  })
}

// 修改thesis
export function updateThesis(data) {
  return request({
    url: '/teacher/thesis/update',
    method: 'post',
    data: data
  })
}

// 删除thesis
export function delThesis(thesisId) {
  return request({
    url: '/teacher/thesis/' + thesisId,
    method: 'post'
  })
}
